﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RooHui.Infrastructure.Entities.Enum;

namespace RooHui.Portal.WebLogic
{
    public class Style
    {
        public static string MakeAmountOperationStyle(decimal amount, AmountOperationType type)
        {
            switch (type)
            {
                case AmountOperationType.Settlement:
                case AmountOperationType.Recharge:
                    return String.Format("<span class=\"text-success\">￥ +{0}</span>",amount);
                case AmountOperationType.Withdraw:
                case AmountOperationType.Investment:
                    return String.Format("<span class=\"text-error\">￥ -{0}</span>", amount);
                case AmountOperationType.FreezeForProject:
                    return String.Format("<span class=\"text-info\">￥ {0}</span>", amount);
                case AmountOperationType.UnFreezeForProject:
                    return String.Format("<span class=\"text-warning\">￥ {0}</span>", amount);
                default:
                    return "";
            }
        }
    }
}
